﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace EmgrMvc.Models
{
    public class OntimeJob
    {
        public int Id { get; set; }
        [Display(Name = "名称")]
        public string Name { get; set; }
        [Display(Name = "星期")]
        public int Weekday { get; set; }
        [Display(Name = "时")]
        public int Hour { get; set; }
        [Display(Name = "分")]
        public int Minute { get; set; }
        [Display(Name = "秒")]
        public int Second { get; set; }
        [Display(Name = "单双周")]
        public string OddEvenWeek { get; set; }

        /// <summary>
        /// 取值：DEVICE / GROUP
        /// </summary>
        [Display(Name = "设备或组")]
        public string DeviceOrGroup { get; set; }
        [Display(Name = "设备或组Id")]
        public int  DeviceOrGroupId { get; set; }
        [Display(Name = "动作")]
        public string Action { get; set; }
        [Display(Name = "活动")]
        public bool Active { get; set; }

    }
}
